﻿using InfoPathHelpers.TemplateExplorer.Definitions.RuleDefinitions;

namespace InfoPathHelpers.TemplateExplorer.Definitions
{
    public class SubmitDefinition
    {
        public bool SubmitAllowed { get; set; }
        public string Caption { get; set; }
        public bool IsMenuItemDisabled { get; set; }
        public AfterSubmitActions AfterSubmitAction { get; set; }
        public bool ShowStatusDialog { get; set; }
        public string ErrorMessage { get; set; }
        public string SuccessMessage { get; set; }
        public EmailAdapterDefinition EmailAdapter { get; set; }
        public RuleSetDefinition RuleSetAction { get; set; }
        public bool CustomCode { get; set; }

    }

    public enum AfterSubmitActions
    {
        Close,
        OpenNew,
        KeepOpen,
    }
}
